package com.ycxy.entity;


import java.util.Date;


/**
* 
* @TableName blog
*/
public class Blog {

    /**
    * 博客ID
    */

    private Integer id;
    /**
    * 标题
    */

    private String title;
    /**
    * 内容
    */

    private String content;
    /**
    * 作者ID（关联用户表）
    */

    private Integer userId;
    /**
    * 状态（1-已发布，2-草稿）
    */

    private Integer status;
    /**
    * 浏览量
    */

    private Integer pageViews;
    /**
    * 创建时间
    */

    private Date createTime;
    /**
    * 更新时间
    */

    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPageViews() {
        return pageViews;
    }

    public void setPageViews(Integer pageViews) {
        this.pageViews = pageViews;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", userId=" + userId +
                ", status=" + status +
                ", pageViews=" + pageViews +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
